Sidebar sorting does not account for short-title
in front matter
#201
Labels
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
What information was incorrect, unhelpful, or incomplete?
When using
type: listSubPages
in the sidebar YAML, items in the sidebar are sorted in the alphabetical order of theirtitle
s. This is the default behavior.However, this sorting does not consider
short-title
for sorting even thoughshort-title
is what's actually displayed in the sidebar. The sorting still usestitle
even ifshort-title
is present.Check out this demo commit that uses
type: listSubPages
: dipikabh/content@dea9711. This produces the following sorting in the sidebar:For context, these pages have the following titles and short-titles in their front matters:
What did you expect to see?
listSubPages
:short-title
, that should be used for sorting along with other pages that have onlytitle
defined, so that alphabetical ordering happens regardless of which field is present in the front matter.Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
The problem I'm reporting here is not on the site, I observed this when I earlier used
type: listSubPages
.The list under "Guides" section in the HTML sidebar has now been manually ordered (in this PR) to list more familiar tasks first and niche or advanced topics later.
The text was updated successfully, but these errors were encountered: